<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                xmlns:ds="http://deltaset.org/deltaset-faces"
                xmlns:mf="http://java.sun.com/jsf/composite/deltaset.meta/flow"
                xmlns:composite="http://java.sun.com/jsf/composite"> 

<div style="text-align: right">
 <c:forEach items="#{meta.contextActions}" var="action">
            <mf:commandButton metaAction="#{action}"
                              model="#{meta.model}"
                              meta="#{meta}"                            
                              />                        
        </c:forEach>
        <div>
            <c:forEach items="#{meta.otherContextActions}" var="action">
                <mf:commandButton metaAction="#{action}"
                                  model="#{meta.model}"
                                  meta="#{meta}"
                                  noVoidShow="executeTemplate"
                                  voidShow="executeTemplate"								  
                                  style="font-size: 0.8em;"
                                  />
            </c:forEach>
        </div>
       
    </div>
				
    <ds:fieldset width="550px">
        <h:messages styleClass="ui-state-highlight ui-corner-all"/>                   
        <mf:form-fields fields="#{meta.formFields}" model="#{meta.model}" meta="#{meta}" owner="#{meta.modelClass}" formId="#{formId}"/>
        <ds:outputText label="Id" value="#{meta.getModelId(meta.model)}"/>
    </ds:fieldset>

    <div style="text-align: right">
        <div>
            <c:forEach items="#{meta.otherContextActions}" var="action">
                <mf:commandButton metaAction="#{action}"
                                  model="#{meta.model}"
                                  meta="#{meta}"
                                  noVoidShow="executeTemplate"
                                  voidShow="executeTemplate"								  
                                  style="font-size: 0.8em;"
                                  />
            </c:forEach>
        </div>
        <c:forEach items="#{meta.contextActions}" var="action">
            <mf:commandButton metaAction="#{action}"
                              model="#{meta.model}"
                              meta="#{meta}"                            
                              />                        
        </c:forEach>
    </div>  

</ui:composition>
